import request from '@/utils/request'
//分页列表
export function getBlackupDblist(params) {
    return request({
        method: 'get',
        url: '/tbSysBackup/queryPageList',
        params
    })
}
//备份数据库
export function setBackupDb(data) {
    return request({
        method: 'post',
        url: '/tbSysBackup/backupDb',
        data
    })
}
//修改数据备份详情
export function editBackupDb(data) {
    return request({
        method: 'post',
        url: '/tbSysBackup/update',
        data
    })
}
//恢复数据库
export function resetBackupDb(id) {
    return request({
        method: 'get',
        url: '/tbSysBackup/recoverDb/'+id
    })
}